//
//  UpdateHandler.h
//  WeddingStoreFinder
//
//  Created by Macdev on 11/19/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WebService.h"

@protocol UpdateHandlerDelegate;

@interface UpdateHandler : NSObject <WebServiceDelegate> {
    
}

@property (nonatomic, assign) id <UpdateHandlerDelegate> delegate;
@property (nonatomic, retain) NSString *updateResultMessage;

- (void) checkForUpdate;
- (void) update;


@end


@protocol UpdateHandlerDelegate <NSObject>
@required
- (void) anErrorOccurred:(UpdateHandler*)updateHandler;


@optional
- (void) needUpdate:(BOOL)needUpdate;
- (void) updateDone:(UpdateHandler*)updateHandler;
- (void) updateIsInProgress:(NSString*)textToDisplay;
@end
